home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / disk / misc / AGMSSetSCSI.lha / Example.txt < prev    next >
Text File  |  1996-09-26  |  1KB  |  25 lines

  1. Here's an example of using AGMSSetSCSI to turn on the Quantum
  2. Fireball's power down time delay feature, with a 30 second idle delay
  3. before spinning down.  The hard drive is at SCSI ID 0.  The settings
  4. are in page $0d: byte 1's low bit has to be turned on to enable this
  5. feature.  The last four bytes specify the time delay in 10ths of a
  6. second ($0000012C in hex equals 300 decimal).  Normally you don't have
  7. to specify the device, but I have two hard drive controllers with
  8. different device drivers.
  9.  
  10. AGMSSetSCSI device SCSI-Apollo.device 0 d 1/1 8/1 9/2c writecurrent
  11.  
  12. And this is the output it produces:
  13.  
  14. Using SCSI-Apollo.device unit 0 (ID 0, LUN 0), page $0d, "current" data source.
  15. Received 24 mode sense bytes.  Raw mode sense data in hexadecimal:
  16.  17 00 00 08 00 20 91 21 00 00 02 00 8d 0a 00 00
  17.  00 00 00 00 00 00 00 00
  18. Found page $0d, changeable, containing 10 bytes:
  19.          00 01 02 03 04 05 06 07 08 09
  20.          00 00 00 00 00 00 00 00 00 00
  21. Now have 10 bytes of changed data for page $0d:
  22.          00 01 00 00 00 00 00 00 01 2c
  23. Writing to current data for page $0d...
  24. Write successfully completed.
  25.